#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int m = 0;
    int n = 0;
    int c = 0;
    int count = 0;
    scanf("%d%d", &m, &n);
    c = m ^ n;
    while (c)
    {
        if (c % 2)
            count++;
        c = c >> 1;
    }
    printf("%d", count);
    return 0;
}